home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / ConnectionTools.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.2 KB  |  116 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ConnectionTools.a
  3. ;
  4. ;    Contains:    Communications Toolbox Connection Tools Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1988-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__CONNECTIONTOOLS__') = 'UNDEFINED' THEN
  18. __CONNECTIONTOOLS__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  24.     include 'Dialogs.a'
  25.     ENDIF
  26.     IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
  27.     include 'Connections.a'
  28.     ENDIF
  29.  
  30.  
  31.                                                             ; messages for DefProc 
  32. cmInitMsg                        EQU        0
  33. cmDisposeMsg                    EQU        1
  34. cmSuspendMsg                    EQU        2
  35. cmResumeMsg                        EQU        3
  36. cmMenuMsg                        EQU        4
  37. cmEventMsg                        EQU        5
  38. cmActivateMsg                    EQU        6
  39. cmDeactivateMsg                    EQU        7
  40. cmIdleMsg                        EQU        50
  41. cmResetMsg                        EQU        51
  42. cmAbortMsg                        EQU        52
  43. cmReadMsg                        EQU        100
  44. cmWriteMsg                        EQU        101
  45. cmStatusMsg                        EQU        102
  46. cmListenMsg                        EQU        103
  47. cmAcceptMsg                        EQU        104
  48. cmCloseMsg                        EQU        105
  49. cmOpenMsg                        EQU        106
  50. cmBreakMsg                        EQU        107
  51. cmIOKillMsg                        EQU        108
  52. cmEnvironsMsg                    EQU        109                    ; new connection tool messages for ctb 1.1 
  53. cmNewIOPBMsg                    EQU        110
  54. cmDisposeIOPBMsg                EQU        111
  55. cmGetErrorStringMsg                EQU        112
  56. cmPBReadMsg                        EQU        113
  57. cmPBWriteMsg                    EQU        114
  58. cmPBIOKillMsg                    EQU        115
  59.  
  60.                                                             ;    messages for validate DefProc    
  61. cmValidateMsg                    EQU        0
  62. cmDefaultMsg                    EQU        1
  63.  
  64.                                                             ;    messages for Setup DefProc    
  65. cmSpreflightMsg                    EQU        0
  66. cmSsetupMsg                        EQU        1
  67. cmSitemMsg                        EQU        2
  68. cmSfilterMsg                    EQU        3
  69. cmScleanupMsg                    EQU        4
  70.  
  71.                                                             ;    messages for scripting defProc    
  72. cmMgetMsg                        EQU        0
  73. cmMsetMsg                        EQU        1
  74.  
  75.                                                             ;    messages for localization defProc    
  76. cmL2English                        EQU        0
  77. cmL2Intl                        EQU        1
  78.  
  79.                                                             ; private data constants 
  80. cdefType                        EQU        'cdef'                ; main connection definition procedure 
  81. cvalType                        EQU        'cval'                ; validation definition procedure 
  82. csetType                        EQU        'cset'                ; connection setup definition procedure 
  83. clocType                        EQU        'cloc'                ; connection configuration localization defProc 
  84. cscrType                        EQU        'cscr'                ; connection scripting defProc interfaces 
  85. cbndType                        EQU        'cbnd'                ; bundle type for connection 
  86. cverType                        EQU        'vers'
  87. CMDataBuffer            RECORD 0
  88. thePtr                     ds.l    1                ; offset: $0 (0)
  89. count                     ds.l    1                ; offset: $4 (4)
  90. channel                     ds.w    1                ; offset: $8 (8)
  91. flags                     ds.w    1                ; offset: $A (10)
  92. sizeof                     EQU *                    ; size:   $C (12)
  93.                         ENDR
  94. ; typedef struct CMDataBuffer *            CMDataBufferPtr
  95.  
  96. CMCompletorRecord        RECORD 0
  97. async                     ds.b    1                ; offset: $0 (0)
  98. filler                     ds.b    1                ; offset: $1 (1)
  99. completionRoutine         ds.l    1                ; offset: $2 (2)
  100. sizeof                     EQU *                    ; size:   $6 (6)
  101.                         ENDR
  102. ; typedef struct CMCompletorRecord *    CMCompletorPtr
  103.  
  104. ;     Private Data Structure    
  105. CMSetupStruct            RECORD 0
  106. theDialog                 ds.l    1                ; offset: $0 (0)
  107. count                     ds.w    1                ; offset: $4 (4)
  108. theConfig                 ds.l    1                ; offset: $6 (6)
  109. procID                     ds.w    1                ; offset: $A (10)        ;  procID of the tool    
  110. sizeof                     EQU *                    ; size:   $C (12)
  111.                         ENDR
  112. ; typedef struct CMSetupStruct *        CMSetupPtr
  113.  
  114.     ENDIF ; __CONNECTIONTOOLS__ 
  115.  
  116.